define(["angularAMD"], function (angularAMD) {
    angularAMD.service('B0220Service', ['$rootScope', '$filter', '$translate', 'config', 'MMWService', '$mdDialog',
        function($rootScope, $filter, $translate, config, $MMWService){
            this.trenching = function(machine_no, feedback){
                $MMWService.sendToServer({
                    uri: 'ServicesSTD.Module_MAT.system_command_set_process',
                    content: {
                        key_no:machine_no,
                        command:'001'
                    },
                    success: function (data) {
                        $rootScope.showToast($filter('translate')('B0220.msg.success'));
                        if(feedback)
                            feedback();
                    }
                });
            }
        }]);
});
